﻿using System.Collections.Generic;
using Tauren.Business.DLL.Base;
using Global = Tauren.Business.Entity.Global;
using Model = Tauren.Business.Entity.Model;

namespace Tauren.Business.DLL.AccountInfo
{
    /// <summary>
    /// 账号基本信息
    /// </summary>
    public interface IAccountInfoBusiness : IBaseDLL
    {
        #region 查询
        /// <summary>
        /// 分页获取账号信息
        /// </summary>
        /// <param name="queryModel"></param>
        /// <param name="Total"></param>
        /// <returns></returns>
        List<Model.PageAccountModel> Pages(Global.QueryModel queryModel, out long Total);        

        /// <summary>
        /// 根据账号获取账号信息
        /// </summary>
        /// <param name="Account"></param>
        /// <returns></returns>
        Model.AccoutInfo GetByAccount(string Account);

        /// <summary>
        /// 逻辑删除数据
        /// </summary>
        /// <param name="AccountId"></param>
        /// <returns></returns>
        bool Delete(object AccountId);

        /// <summary>
        /// 根据组织获取账号
        /// </summary>
        /// <param name="orgId"></param>
        /// <returns></returns>
        List<Model.AccoutInfo> GetByOrgs(string orgId);
        #endregion
    }
}
